package com.chenjun.core.service.sys;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

import com.chenjun.common.bean.Pagination;
import com.chenjun.common.model.DataGridModel;
import com.chenjun.core.dao.generator.entity.SysUser;
import com.chenjun.core.vo.sys.UserBean;

public interface SysUserService {
	public SysUser get(String id) ;
	public int create(SysUser record);
	public int delete(String id);
	
	public void deleteActivitiData(String id);

	public int update(SysUser record);

	public int createOrUpdate(SysUser record);

	public int editUser(SysUser record) ;

	/**
	 * 添加用户和角色名
	 * 
	 * @param record
	 * @return int
	 * @throws InvocationTargetException
	 * @throws IllegalAccessException
	 */
	public int createOrUpdate(UserBean record) throws IllegalAccessException, InvocationTargetException ;

	public int doCountByCondition(DataGridModel param);
	
	public List<SysUser> doListByCondition(DataGridModel param);

	public Pagination doPagination(DataGridModel param) ;

}
